<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| This file is where you may define all of the routes that are handled
| by your application. Just tell Laravel the URIs it should respond
| to using a Closure or controller method. Build something great!
|
*/

Route::get('/', function () {
    return view('welcome');
});
//--------------------测试Controller--------------------------------------------------------
Route::any('test/yunjing','Rent\TestController@yunjing');
//------------------------------------------------------------------------------------------



//-----------------------云净----------------------
Route::any('rent/YjNotify.html','Rent\YjController@YjNotify');

//--------------------------------获取七牛Token---------------------------------------------
Route::any('rent/qiniu_token','Rent\RentController@qiniu_token');
//------------------------------------------------------------------------------------------

//---------------------------------上传头像-------------------------------------------------
Route::post('rent/thumb','Rent\RentController@thumb');
//------------------------------------------------------------------------------------------
//-----------注册3步------------------------------------------------------------------------
Route::post('rent/get_code','Rent\RentController@get_code');
Route::post('rent/zhuce','Rent\RentController@zhuce');
Route::post('rent/add_info','Rent\RentController@add_info');
//------------------------------------------------------------------------------------------


//-------------修改密码---------------------------------------------------------------------
Route::post('rent/forgot_code','Rent\RentController@forgot_code');
Route::post('rent/forgot_pwd','Rent\RentController@forgot_pwd');
//------------------------------------------------------------------------------------------

//---------------------修改手机号-----------------------------------------------------------
Route::post('rent/edit_phone','Rent\RentController@edit_phone');
//------------------------------------------------------------------------------------------

//--------------------出租项目与价格--------------------------------------------------------
Route::post('rent/show_project','Rent\RentController@show_project');
Route::post('rent/add_project','Rent\RentController@add_project');
//------------------------------------------------------------------------------------------

//--------------------个人特长--------------------------------------------------------------
Route::post('rent/show_hobby','Rent\RentController@show_hobby');
Route::post('rent/add_hobby','Rent\RentController@add_hobby');
//------------------------------------------------------------------------------------------

//--------------------职业------------------------------------------------------------------
Route::post('rent/show_job','Rent\RentController@show_job');
Route::post('rent/add_job','Rent\RentController@add_job');
//------------------------------------------------------------------------------------------
//--------------------档期------------------------------------------------------------------
Route::post('rent/show_free_time','Rent\RentController@show_free_time');
Route::post('rent/add_free_time','Rent\RentController@add_free_time');
//------------------------------------------------------------------------------------------

//------------------------编辑个人资料------------------------------------------------------
Route::post('rent/showMyInfo','Rent\RentController@showMyInfo');
Route::post('rent/edit_info','Rent\RentController@edit_info');
//------------------------------------------------------------------------------------------

//----------------------------租圈----------------------------------------------------------
Route::post('rent/rentCircle','Rent\RentController@rentCircle');
Route::post('rent/showNewNeed','Rent\RentController@showNewNeed');
Route::post('rent/seeLike','Rent\RentController@seeLike');
Route::post('rent/nearbyNeed','Rent\RentController@nearbyNeed');
//------------------------------------------------------------------------------------------

//-------------------------------帮助与反馈-------------------------------------------------
Route::post('rent/feedBack','Rent\RentController@feedBack');
//------------------------------------------------------------------------------------------

//--------------------------------我的关注我的粉丝------------------------------------------
Route::post('rent/myFans','Rent\RentController@myFans');
Route::post('rent/myFollow','Rent\RentController@myFollow');
Route::post('rent/myZone','Rent\RentController@myZone');
Route::post('rent/myNeed','Rent\RentController@myNeed');
Route::post('rent/addFollow','Rent\RentController@addFollow');
Route::post('rent/delFollow','Rent\RentController@delFollow');
//------------------------------------------------------------------------------------------

//-----------------------------------显示充值界面-------------------------------------------
Route::post('rent/showRecharge','Rent\RentController@showRecharge');
Route::post('rent/showVip','Rent\RentController@showVip');

//------------------------------------------------------------------------------------------

//------------------------------我的钱包----------------------------------------------------
Route::post('rent/myMoney','Rent\RentController@myMoney');
//------------------------------------------------------------------------------------------
//------------------------------谁查看过我--------------------------------------------------
Route::post('rent/lookAtMe','Rent\RentController@lookAtMe');
Route::post('rent/iLook','Rent\RentController@iLook');

//------------------------------------------------------------------------------------------


//-----------------------支付宝-------------------------------------------------------------
Route::post('rent/alipay','Rent\AliController@alipay');
Route::post('rent/notify.html','Rent\AliController@notify');
Route::post('rent/aliQuery','Rent\AliController@aliQuery');
Route::post('rent/aliRefund','Rent\AliController@aliRefund');
Route::post('rent/aliRefundQuery','Rent\AliController@aliRefundQuery');
Route::post('rent/walletPay','Rent\AliController@walletPay');
//------------------------------------------------------------------------------------------







//------------------------------------------------后台管理-------------------------------------------------------------
Route::any('admin/login.html','Rent\AdminController@login');
Route::group(['middleware'=>['web','checkoutlogin']],function(){
    Route::any('admin/index.html','Rent\AdminController@index');
    Route::any('admin/project.html','Rent\AdminController@project');
    Route::any('admin/del_project.html','Rent\AdminController@del_project');
    Route::any('admin/edit_project.html','Rent\AdminController@edit_project');
    Route::any('admin/user.html','Rent\AdminController@user');
    Route::any('admin/editTop.html','Rent\AdminController@editTop');
    Route::any('admin/consum.html','Rent\AdminController@consum');
    Route::any('admin/recharge.html','Rent\AdminController@recharge');
    Route::any('admin/top.html','Rent\AdminController@top');
});



Route::post('rent/index','Rent\RentController@index');
Route::post('rent/findid','Rent\RentController@findid');
Route::post('rent/select','Rent\RentController@select');
Route::post('rent/info','Rent\RentController@info');
Route::post('rent/showComment','Rent\RentController@showComment');
Route::post('rent/comment','Rent\RentController@comment');
Route::post('rent/reg','Rent\RentController@reg');
Route::post('rent/login','Rent\RentController@login');
